#ifndef _REC_NEC_H
#define _REC_NEC_H

#define NEC_POWER (0xA200|((~0x00A2)&0x00ff))
#define NEC_MODE (0xE200|((~0x00E2)&0x00ff))
#define NEC_SHAKE (0xE000|((~0x00E0)&0x00ff))
#define NEC_TIME (0x9000|((~0x0090)&0x00ff))
#define NEC_UP (0x3000|((~0x0030)&0x00ff))
#define NEC_DOWN (0x7A00|((~0x007A)&0x00ff))

extern unsigned char nec_recOk;

extern unsigned short nec_dataBuff;
extern unsigned char nec_notRecTime;

void NEC_Rec(unsigned char dat);


#endif
